package com.ly.blog2Admin.dao.model;

import com.ly.blog2Common.core.dao.model.BaseModel;

public class SysLoginLog extends BaseModel {

	public static final String LOGIN_STATE_ONLINE = "online"; //在线
	public static final String LOGIN_STATE_TIMEOUT = "timeout"; //超时
	public static final String LOGIN_STATE_LOGOUT = "logout"; //用户退出
	public static final String LOGIN_STATE_STOP= "stop"; //再次登录强制下线上次

    private String userName;

	/**
	 * 对应 上面常量定义 LOGIN_STATE_
	 */
	private String status;

    private String ip;

	public SysLoginLog() {
		super();
	}

	public SysLoginLog(String userName, String status, String ip) {
		super();
		this.userName = userName;
		this.status = status;
		this.ip = ip;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

}